﻿using Storyteller.Framework.Math;

namespace Storyteller.Framework.Graphics.Particles.Modifiers
{
	public class AccelerationModifier : ParticleModifier
	{
		public Vector2 Acceleration { get; set; }

		public override void Process(float deltaSeconds, Particle[] particles, int count)
		{
			for (int i = 0; i < count; i++)
			{
				particles[i].Velocity += Acceleration * deltaSeconds;
			}
		}
	}
}
